
set(APP_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})

set(APP_MODULE_SRCS)
list(APPEND APP_MODULE_SRCS
        ${APP_MODULE_PATH}/disp_hub.c
        ${APP_MODULE_PATH}/ui_application.c
    )

aux_source_directory(${APP_MODULE_PATH}/app APP_SRCS)
aux_source_directory(${APP_MODULE_PATH}/logic LOGIC_SRCS)
aux_source_directory(${APP_MODULE_PATH}/common COMMON_SRCS)
aux_source_directory(${APP_MODULE_PATH}/common/font COMMON_FONT_SRCS)
aux_source_directory(${APP_MODULE_PATH}/common/img COMMON_IMG_SRCS)
aux_source_directory(${APP_MODULE_PATH}/sys SYS_SRCS)

list(APPEND APP_MODULE_SRCS
    ${APP_SRCS}
    ${LOGIC_SRCS}
    ${COMMON_SRCS}
    ${COMMON_FONT_SRCS}
    ${COMMON_IMG_SRCS}
    ${SYS_SRCS}
)

set(APP_MODULE_INC 
    ${APP_MODULE_PATH}
    ${APP_MODULE_PATH}/common
    ${APP_MODULE_PATH}/app
    ${APP_MODULE_PATH}/logic
    ${APP_MODULE_PATH}/sys

)

########################################
# APPS Configure
########################################

include("${APP_MODULE_PATH}/app/app.cmake")


########################################
# Target Configure
########################################
target_sources(${EXAMPLE_LIB}
    PRIVATE
        ${APP_MODULE_SRCS}
    )

target_include_directories(${EXAMPLE_LIB}
    PRIVATE
        ${APP_MODULE_INC}
    )